package com.hengpeng.itfin.persist;

import java.util.Date;

import com.hengpeng.common.persist.NestedSimplyDao;
import com.hengpeng.itfinbase.en.RewardRebateStatus;
import com.hengpeng.itfinbase.persist.RewardRebate;

public interface RebateDao extends NestedSimplyDao<RewardRebate> {

    /**
     * 更新返利状态
     *  
     * @param id
     * @param oldStatus
     * @param newStatus
     * @param updateTime
     * @param payTime
     * @return
     */
    public int updateStatus(long userId, RewardRebateStatus oldStatus, RewardRebateStatus newStatus, Date updateTime,
            Date payTime);

    /**
     * 根据流水号更新支付时间
     * 
     * @param referenceId
     * @param payTime
     * @return
     */
    public int activeByReferenceId(String referenceId, Date payTime);

}
